package com.woniu.service;

import com.woniu.pojo.Shipping;
import com.woniu.pojo.Users;

import java.util.List;
import java.util.Map;

public interface UsersService {

    Users getUser(long id);

    String update(Users users);

    List<Shipping> getRecAddress(Long id);

    String delRecAddress(int id);

    String updateRecAddress(Shipping shipping);

    String getOldPass(Long id);

    int updatePass(Long id, String newPass,String oldPass);

    String updateByOther(Integer id, String userName, String birthday, String birthPlace, String phoneNumber, String headimg);

    Map Login(String acc, String pwd);

    String regist(String acc, String pwd);
}
